using System;
using System.Collections;

namespace newtelligence.DasBlog.Runtime
{
	/// <summary>IComparer implementation used for sorting comments by date.</summary>
    public class CommentSorter : IComparer
    {
        public int Compare( object left, object right )
        {
            return ((Comment)right).CreatedUtc.CompareTo(((Comment)left).CreatedUtc);
        }
    }
}
